<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑医生信息</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
a{
	color:#333;
	text-decoration:none;
	}
dl{
	border:1px #90A2AE solid;
	padding:10px;
	margin:10px;
	background:#F2F5F7;
	}
dt{
	height:30px;
	background:#8BA2B9;
	display:block;
	clear:both;
	border-top:1px #D1DAE3 solid;
	}
dd{
	border:1px #D1DAE3 solid;
	border-top:0px;
	border-bottom:0px;
	padding:5px 0px 5px 20px;
	margin-left:0px;
	display:block;
	clear:both;
	background:#F5F7FA;
	}
p{
	margin:10px;
	font-size:14px;
	font-weight:bold;
	background:url(<?php echo $baseurl ?>images/admin_image/icon_top.jpg) left center no-repeat;
	padding-left:18px;
	}
span{

	display:block;
	height:18px;}
-->
</style>
</head>

<body>
 <script language = "JavaScript">  
 function checkdata() {
	if( document.form1.hospital.value == '') {
		alert("\请选择所属医院！");
		document.form1.hospital.focus();
		return false;
	}
	if( document.form1.dept.value == '') {
		alert("\请选择所属科室！");
		document.form1.dept.focus();
		return false;
	}
	if( document.form1.name.value == '') {
		alert("\医生姓名不能为空！");
		document.form1.name.focus();
		return false;
	}
	if( document.form1.intro.value == '') {
		alert("\医生简介不能为空！");
		document.form1.intro.focus();
		return false;
	}
	return true;
	}
 </script>
<div><form action="<?php echo $action;?>" method="post" name="form1"  onsubmit="return checkdata();" >
<p class="text">编辑医生信息</p>
<dl>
<dd style="border-top:1px #D1DAE3 solid;padding-top:15px;">
  <span>所属单位：</span>
  <select name="hospital" disabled="disabled">
  <option value="<?php echo $hospital['hs_id']; ?>"><?php echo $hospital['name']; ?></option>         
    </select>&nbsp;
  <select name="dept">
  <?php foreach ($dept as $r){ ?>
  <option value="<?php echo $r['Id']; ?>" <?php if($doctor['dp_id']==$r['Id']){ echo 'selected="selected"';} ?> ><?php echo $r['name']; ?></option> 
  <?php }?>
  </select>
  <input name="old_dept" type="hidden" value="<?php echo $doctor['dp_id']; ?>" /> 
  * 必选项，所属医院不能修改</dd>
<dd>
  <span>基本资料：（姓名—性别—职称）</span><input name="name" type="text" maxlength="6" style="width:60px;" value="<?php echo $doctor['name']; ?>"/> 
  <select name="sex">
    <option value="0" <?php if($doctor['sex']=='0'){ echo 'selected="selected"';} ?> >男</option>
    <option value="1" <?php if($doctor['sex']=='1'){ echo 'selected="selected"';} ?>>女</option>
  </select>
  <select name="rank">
     <?php foreach($rank as $r){?>   
	<option value="<?php echo $r['Id']; ?>" <?php if($doctor['rank']==$r['Id']){ echo 'selected="selected"';} ?>><?php echo $r['rankname']; ?></option>   
    <?php } ?> 
  </select>
  * 必填项</dd>
<dd>
  <span>专业擅长：</span>
    <input name="special" type="text" maxlength="80" style="width:250px;" value="<?php echo $doctor['special']; ?>"/>
</dd>
<dd>
<span>个人简介（500字以内）：</span>
  <textarea name="intro" cols="" rows="3" style="width:500px;height:80px;font-size:12px;"><?php echo $doctor['intro']; ?></textarea>
</dd>
<dd>
  <span>坐诊时间：</span>
    <input name="worktime" type="text" maxlength="80" style="width:250px;" value="<?php echo $doctor['worktime']; ?>"/>
</dd>
<dd>
<input name="submit1" type="submit" value="编辑医生" style="height:40px;width:80px;line-height:40px;" />
</dd>

<dd style="border-bottom:1px #D1DAE3 solid;"></dd>
</dl>
</form>
</div>

</body>
</html>
